home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17020 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: supert22@aol.com (SUPER T 22)
  3. Newsgroups: comp.lang.c++
  4. Subject: I need HELP with a C++ program.  PLEASE HELP!
  5. Date: 13 Apr 1996 00:57:04 -0400
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4knc70$4q4@newsbf02.news.aol.com>
  9. Reply-To: supert22@aol.com (SUPER T 22)
  10. NNTP-Posting-Host: newsbf02.mail.aol.com
  11.  
  12. Please help.
  13.  
  14. I need a help with a program that calculates interest.  It uses the
  15. formula ---->
  16. PAYMENT=((r * (1 + r) ^ n) / ((1 + r) ^ n - 1)) * I  {where 1 is the
  17. amount borrowed, r is the monthly interest rate, and n is the number of
  18. payments.
  19.  
  20. Here is what the format should look like ENTER YOUR NAME:  John Doe
  21.                                                           Enter the amount
  22. you wish to Borrow  
  23.                                                           Enter the Yearly
  24. Interest Rate in Percent
  25.                                                           Enter the Time
  26. in Years:
  27.  
  28.                                                           Your Montly
  29. Payment will be:
  30.                                                           Total Interest
  31. Paid Will Be:
  32.  
  33. Payment #          Principal Payment        Interest Payment     Remaining
  34. balance
  35.      1                            128.50                         85.33    
  36.                 7871.50
  37.      2                            129.87                         83.96    
  38.                 7741.62
  39.      .
  40.      .
  41.      .
  42.    48                             211.52                          2.31    
  43.                       0
  44.  
  45. I have half of it working, but I cant get the formula part right.  If you
  46. would like to see what I have or get one working,  E-mail me at
  47. SuperT22@aol.com
  48.